import request from '@/utils/request'



// 列表
export function list(params) {
  return request({
    url: '/insight/meetingConfig/findAll',
    method: 'get',
    params: params
  })
}



// 添加
export function add(params) {
  return request({
    url: '/insight/meetingConfig/insertMeetingConfig',
    method: 'post',
    data: params,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}

// 删除
export function del(id) {
  return request({
    url: `/insight/meetingConfig/deleteMeetingConfig?id=${id}`,
    method: 'delete'
  })
}


// 修改
export function edit(params) {
  return request({
    url: '/insight/meetingConfig/updateMeetingConfig',
    method: 'put',
    data: params,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}

// 立即生成
export function updateIsGenerate(params) {
  return request({
    url: '/insight/meetingConfig/updateIsGenerate',
    method: 'post',
    data: params,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}


// 获取配置信息

export function findAllByMeetingId(meetingId) {
  return request({
    url: `/insight/meetingConfigInfo/findAllByMeetingId?meetingId=${meetingId}`,
    method: 'get'
  })
}

// 保存配置信息

export function saveMeetingConfigInfo(params) {
  return request({
    url: '/insight/meetingConfigInfo/saveMeetingConfigInfo',
    method: 'post',
    data: params,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}

// 查询用户信息
export function findUserByOrgId(params) {
  return request({
    url: '/insight/UcOrg/findUserByOrgId',
    method: 'get',
    params: params
  })
}

// 大屏模板列表
export function selectReportManage(params) {
  return request({
    url: '/insight/reportManage/selectReportManage',
    method: 'get',
    params: params
  })
}
// 复制
export function copyMeetingConfig(data) {
  return request({
    url: '/insight/meetingConfig/copyMeetingConfig',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}
